package com.ylyq.ylxx.entity;

import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.ylyq.ylxx.entity.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import jdk.nashorn.internal.ir.annotations.Ignore;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author xiaweichao
 * @since 2020-09-19
 */
@Data
@ApiModel(value="YlyqQuartz对象", description="")
public class YlyqQuartz extends BaseEntity {

    @ApiModelProperty(value = "quartz的job_group")
    @TableField("job_group")
    private String jobGroup;

    @ApiModelProperty(value = "quartz的job_name")
    @TableField("job_name")
    private String jobName;

    @ApiModelProperty(value = "quartz的trigger_group")
    @TableField("trigger_group")
    private String triggerGroup;

    @ApiModelProperty(value = "quartz的trigger_name")
    @TableField("tirgger_name")
    private String tirggerName;

    @ApiModelProperty(value = "广告主ID")
    @TableField("advertiser_id")
    private Long advertiserId;

    @ApiModelProperty(value = "计划ID集合，以“,”分割")
    @TableField("plans")
    private String plans;

    @ApiModelProperty(value = "计划名称集合，以“,”分割")
    @TableField(exist = false)
    private String planName;

    @ApiModelProperty(value = "数据类型。1转化成本,2转化数,3转化率,4消耗,5展示数,6点击数,7点击率，8平均点击单价")
    @TableField("dataType")
    private Integer dataType;

    @ApiModelProperty(value = "统计数据时间。0累计，1当天，7一周，自定义多少天值就多少")
    @TableField("day_num")
    private Integer dayNum;

    @ApiModelProperty(value = "比较的条件。LESS小于等于，MORE大于等于，INTERVAL介于区间,LESSBID低于出价，MOREBID高于出价")
    @TableField("compare_condition")
    private String compareCondition;

    @ApiModelProperty(value = "当条件为消耗时，比较类型。0金额，1日预算")
    @TableField("cost_compart_type")
    private Integer costCompartType;

    @ApiModelProperty(value = "比较条件的开始数据")
    @TableField("start_num")
    private Double startNum;

    @ApiModelProperty(value = "比较条件的结束数据")
    @TableField("end_num")
    private Double endNum;

    @ApiModelProperty(value = "比较条件中的比例值")
    @TableField("rate")
    private Double rate;

    @ApiModelProperty(value = "执行的操作, enable表示启用, delete表示删除, disable表示暂停，changeBid表示调价至多少，upBid表示提高价格至多少，lowBid表示降低价格至多少，changeBudget表示调整预算到多少" +
            "，upBudget表示提高预算到多少,lowBudget表示降低预算到多少")
    @TableField("operating")
    private String operating;

    @ApiModelProperty(value = "金额值，state为changeBid、upBid、lowBid、changeBudget，upBudget，lowBudget时必填")
    @TableField("money")
    private Double money;

    @ApiModelProperty(value = "执行频率方式。0：每多少分钟执行一次，不得少于10分钟。3：每小时执行一次。1：每天几点定时执行。2：指定日期时间执行")
    @TableField("type")
    private Integer type;

    @ApiModelProperty(value = "执行频率。每多少分钟执行一次就填多少，如：\"20\"，不得少于10分钟。每天几点定时执行就填时分，如“08:30”。指定日期时间执行，如”2020-09-20 17:30:00")
    @TableField("time")
    private String time;

}
